﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WfDefined.aspx.cs" Inherits="Runda.CMS.Portal.WorkFlow.WfDefined" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>流程设定</title>
    <!-- Global -->
    <link href="../Content/global.css" type="text/css" rel="stylesheet">

    <script language="javascript" src="../Content/global.js"></script>

    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />
    <!-- Menu -->
    <link href="../Content/Menu/Menu.css" type="text/css" rel="stylesheet">

    <script language="javascript" src="../Content/Menu/menu.js"></script>

    <!-- Form -->
    <link href="../Content/Form/form.css" type="text/css" rel="stylesheet">

    <script language="javascript" src="/_forms/FormBase.js"></script>

    <!-- Datetime & Number -->

    <script language="javascript" src="../Content/settings.aspx"></script>

    <script language="javascript" src="../Content/DateTime/date.js"></script>

    <script language="javascript" src="../Content/DateTime/time.js"></script>

    <!-- Select -->
    <link href="../Content/Form/select.css" type="text/css" rel="stylesheet" />
    <!-- Lookup -->

    <script language="javascript" src="../Content/lookup/map_Lookup.js"></script>

    <script language="javascript" src="../Content/lookup/map_LookupDialogs.js"></script>

    <!-- Navbar -->
    <link href="../Content/Navigate/nav.css" type="text/css" rel="stylesheet" />

    <script language="javascript" src="../Content/Detail.js"></script>

    <!-- Tab -->
    <link href="../Content/Tab/tabs.css" type="text/css" rel="stylesheet" />
    <!-- Utility-->

    <script language="javascript" src="../Content/util.js"></script>

    <!-- Repeater -->
    <link rel="stylesheet" type="text/css" href="../Content/Grid/mapgrid.css">

    <script language="javascript" src="../Content/Grid/rep_grid.js"></script>

    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="WFDefined.js"></script> 
    
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    <!-- Workflow -->

    <script language="javascript">
        //在线帮助文件
        var _MyHelpfile = "/WorkFlow/help/WFDefined.htm";
       


        function OpenWFDefined(val) {
            if (val != '') {
                openMyFullWin('WFDefined_Add.aspx?ModelID=' + val, 'editWFDefined');
            } else {
            openMyFullWin('WFDefined_Add.aspx', 'newWFDefined');
            }
        }
    </script>

</head>
<body style="padding-right: 10px; padding-left: 10px; padding-bottom: 10px; padding-top: 10px">
    <form id="Form1" method="post" runat="server">
    <asp:LinkButton ID="LinkButton1" runat="server" Style="display: none">LinkButton</asp:LinkButton>
    <div class="Container">
        <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>流程列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                        <span class="menu" tabindex="0" menu="appGridMenu_mainmnu">操作<img src="../Content/Grid/mnuDown.gif">
                            <table id="appGridMenu_mainmnu" class="mnuList" cellspacing="0" cellpadding="3">
                                <colgroup>
                                    <col class="mnuLeft">
                                    <col class="mnuItm">
                                    <col align="right" width="20">
                                    <tbody>
                                        <tr tabindex="0">
                                            <td>
                                            </td>
                                            <td colspan="2" nowrap>
                                                <asp:LinkButton ID="lnkbtnSync" runat="server">删除</asp:LinkButton>
                                            </td>
                                        </tr>
                                    </tbody>
                            </table>
                        </span>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                    </td>
                </tr>
            </tbody>
        </table>
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
        <asp:Repeater ID="RepeaterFlows" runat="server" OnItemCommand="RepeaterFlows_ItemCommand">
            <HeaderTemplate>
                <table id="grid" class="grid" cellspacing="0" cellpadding="0">
                    <tbody>
                        <tr class="header">
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        流程名称</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        激活</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        业务类型</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        归档人</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        备注</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td width="14">
                                <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif"
                                    AlternateText="刷新列表" />
                            </td>
                        </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="data" ondblclick="OpenWFDefined('<%#Eval("ModelID") %>')" onclick="handleClick();GetGraph('<%# Eval("ModelID") %>')">
                    <td>
                        <%# Eval("ModelName")%>
                    </td>
                    <td>
                        是
                    </td>
                    <td>
                        <%# Eval("ModelName")%>
                    </td>
                    <td>
                        <%# Eval("CreatedOn")%>
                    </td>
                    <td>
                        <%# Eval("ModelDescription")%>
                    </td>
                    <td>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </asp:Repeater>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" FirstPageText="首页"
            LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" ShowCustomInfoSection="Left"
            Width="100%" LayoutType="Table" SubmitButtonClass="but" SubmitButtonText="转到"
            OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <table style="width: 100%;" cellpadding="0" cellspacing="0">
        <tr height="29" style="border-right: #7288ac 1px solid; border-top: #7288ac 1px solid;
            border-left: #7288ac 1px solid; border-bottom: #7288ac 1px solid">
            <td>
                <table class="mnuBar">
                    <tr>
                        <td>
                            <b>流程步骤图</b>
                        </td>
                        <td align="right">
                            <img id="imgmap" src="/Images/index_arrow_up.gif" style="cursor: hand" onclick="ShowGraph()">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr height="220">
            <!--流程图例-->
            <td id="tdmap" style="border-right: #7288ac 1px solid; border-top: #7288ac 1px solid;
                display: none; border-left: #7288ac 1px solid; border-bottom: #7288ac 1px solid">
                <iframe id="wfmap" frameborder="0" style="overflow: auto; width: 100%; height: 100%">
                </iframe>
            </td>
            <!---->
        </tr>
    </table>
    </form>
</body>
</html>
